import { request } from '@/utils/request'

//发送注册验证码
export const sendRegisterCode = function (number) {
    return request.get(`/code/register/phone/${number}`);
}

//注册
export const register = function (entity) {
    return request.post('/register/phone', entity)
}

//
export const getRole = function () {
    return request.get(`/register/role`);
}